package model

import (
	"fmt"
	"gin_jwt/internal/domain/iotas"
)

// 用户结构体
type SysUser struct {
	UserID   int             `json:"userid"`
	Username string          `json:"username"`
	Password string          `json:"password"`
	State    iotas.UserState `json:"state"`
}

// jwt体内容 用户信息
type UserClaims struct {
	UserID   int    `json:"userid"`
	Username string `json:"username"`
}

// 定义初始用户
var SysUserList = []SysUser{}

func init() {
	SysUserList = append(SysUserList, SysUser{
		1,
		"zhangsan",
		"111111",
		iotas.Stop,
	})

	SysUserList = append(SysUserList, SysUser{
		2,
		"lisi",
		"111111",
		iotas.Normal,
	})
	fmt.Println("初始化用户：", SysUserList)
}
